package com.ku.pksu.bornegaarden.info;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;

import com.ku.pksu.bornegaarden.R;
import com.ku.pksu.bornegaarden.lp.LPActivityStack;

public class InfoList extends ListActivity {
	
	private ListView list;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.infolist);

	}

	protected void onListItemClick(ListView l, View v, int position, long id) {
		super.onListItemClick(l, v, position, id);
		
		InfoActivityStack infoStack = (InfoActivityStack) getParent();
		Intent i = new Intent(this, Info.class);
		i.putExtra("Data", getResources().getStringArray(R.array.InfoItemLinks)[position]);
		infoStack.push("Info", i);
	}
}
